package com.woniuxy.model.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 商家端修改次卡信息
 */
@Data
public class UpdateCountCardForm {
    /**
     * 次卡id
     */
    @Min(value = 1,message = "次卡id为正整数")
    private Integer cardId;
    /**
     * 次卡名称
     */
    @NotBlank(message = "次卡名称不为空")
    private String cardName;

    /**
     * 刷卡次数
     */
    @Min(value = 1,message = "刷卡次数为正整数")
    private Integer cardCount;

    /**
     * 价格
     */

    @Min(value = 1,message = "价格为正数")
    private BigDecimal cardPrice;
}
